package academic.nantes.teamsync.constants;

public class Cst {

	public static class WS{

		public static String WS_URL_BASE = "http://hoel.gleo.free.fr/TeamSync/";
		//public static String WS_URL_BASE = "http://192.168.1.91/TeamSync/";

		public static final String WS_URL_EXTENSION = ".php";

		public static final String APP_USER = "appliAndroidTeamSync";

		public static final String APP_PASSWORD = "6d99d9b2faf36db31c92a2668b6a280931985e68";

	}

	// Autres categories de constantes

	public static class reqstCode{
		public static class General{
			public static final int BACK_BUTTON_PRESSED = 10;
		}
		public static class Remarque{
			public static final int ADD_REMARQUE = 100;
			public static final int ADD_INFO_OK = 101;
			public static final int ADD_NOTE_OK = 102;
			
			public static final int DELETE_REAMRQUE = 110;
			public static final int DEL_INFO_OK = 111;
			public static final int DEL_NOTE_OK = 112;

			public static final int LIRE_REMARQUE = 120;
			
			public static final int UPD_INFO = 131;
			public static final int UPD_NOTE = 132;
						
			public static final int ERROR_ADDING_INFO = 190;
			public static final int ERROR_ADDING_NOTE= 191;
			public static final int ERROR_DELETING_INFO = 192;
			public static final int ERROR_DELETING_NOTE = 193;
		}
		public static class Articles{
			public static final int ADD_ARTICLE = 200;
			public static final int ADD_ARTICLE_OK = 201;

			public static final int DEL_ARTICLE = 210;
			public static final int DEL_ARTICLE_OK = 211;
			
			public static final int READ_ARTICLE = 220;

			public static final int UPDATE_ARTICLE = 231;

			public static final int ERROR_ADDING_ARTICLE = 290;
			public static final int ERROR_DELETING_ARTICLE = 291;
		}
		public static class Liens{
			public static final int ADD_LINK = 300;
			public static final int ADD_LINK_OK = 301;
			
			public static final int DEL_LINK = 310;
			public static final int DEL_LINK_OK = 311;

			public static final int UPDATE_LINK = 330;
			public static final int UPDATE_LINK_OK = 331;
			
			public static final int ERROR_ADDING_LINK = 390;
			public static final int ERROR_DELETING_LINK = 391;
			public static final int ERROR_UPDATING_LINK = 392;
		}
		public static class Article{
			public static final int PARTAGER = 400;
			public static final int OK_PARTAGE = 401;
			public static final int ERR_PARTAGE = 490;
		}
	}
	
	public static class TypeMessageEtNote{
		public static final int MESSAGE = 0;
		public static final int NOTE = 1;
	}
	
	public static class TypeAffArticle{	
		public static final int ALL = 0;	
		public static final int EXTERNAL = 1;
		public static final int MINE_SHARED = 2;
		public static final int MINE_UNSHARED = 3;
		public static final int FOUND_BY_SEARCH = 4;
	}
}
